
from django.conf.urls import url
from django.contrib import admin
from . import views

urlpatterns = [
    # 商品列表页渲染
    url(r'^list/(?P<categorie_id>\d+)/(?P<page_num>\d)/',views.GoodsListView.as_view()),
    # 获取热销商品
    url(r'hot/(?P<categorie_id>\d+)/$',views.GoodsHotView.as_view()),
    # 详情页渲染
    url(r'detail/(?P<pk>\d+)/$',views.GoodsDetailView.as_view()),
    # 商品分类访问记录
    url(r'detail/visit/(?P<pk>\d)/$',views.GoodsVisitView.as_view()),
    # 用户浏览历史记录
    url(r'browse_histories/$',views.GoodsHistoryView.as_view()),
    # 获取详情页商品评论信息
    url(r'comment/(?P<sku_id>\d+)/$',views.GoodsCommentView.as_view())


]
